package com.fitvita.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.fitvita.common.annotation.Excel;
import com.fitvita.common.core.domain.BaseEntity;

/**
 * 管理对象 res_terminal
 * 
 * @author hao
 * @date 2024-03-03
 */
public class ResTerminal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备序列号 */
    private String IMEI;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer userId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String equipment;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private Long state;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    public void setIMEI(String IMEI) 
    {
        this.IMEI = IMEI;
    }

    public String getIMEI() 
    {
        return IMEI;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setEquipment(String equipment) 
    {
        this.equipment = equipment;
    }

    public String getEquipment() 
    {
        return equipment;
    }
    public void setState(Long state) 
    {
        this.state = state;
    }

    public Long getState() 
    {
        return state;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("IMEI", getIMEI())
            .append("userId", getUserId())
            .append("equipment", getEquipment())
            .append("state", getState())
            .append("date", getDate())
            .toString();
    }
}
